package test.day11;

class Alpha {
    public String getType() { return "alpha"; }
}

class Beta extends Alpha {
public String getType() { return "beta"; }
}

class Gamma extends Beta {
public String getType() { return "gamma"; }
public static void main(String[] args) {
      Alpha g1 = new Beta();
      Alpha g2 = new Gamma();
      System.out.println(g1.getType() + "  " + g2.getType());
}
}
